package org.apache.struts2.plugin.json.model;

/**
 * Definition of the JSON Boolean type.
 * @author VERDOÏA Laurent <verdoialaurent@gmail.com>
 */
public class JSONBoolean extends JSONValue<Boolean> {

    /**
     * Wrapper constructor for {@link JSONValue#JSONValue}
     * @see JSONValue#JSONValue
     */
    public JSONBoolean(Boolean data) {
        super(data);
    }

    /**
     * Wrapper constructor for {@link JSONValue#JSONValue()}
     * @see JSONValue#JSONValue
     */
    public JSONBoolean() {
        super();
    }

    /**
     * Create a new Boolean set to false.
     */
    @Override
    protected Boolean instanciateData() {
        return new Boolean(false);
    }
}
